﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BibliotecaProjeto.gui
{
    public partial class realAluguel : Form
    {
       String senha;

        public realAluguel()
        {
            InitializeComponent();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            for (int i = 0; i <= 4; i++)
            {

                senha += new Random().Next(0, 10);
            }

            MessageBox.Show(senha);

        }

        private void tbHoraIn_TextChanged(object sender, EventArgs e)
        {
            tbHoraIn.Text = DateTime.Now.ToString("HH:mm");
        }

        private void tbDataIn_TextChanged(object sender, EventArgs e)
        {
            tbDataIn.Text = DateTime.Now.ToString("dd/MM/yyyy");
        }
    }
}
